package com.vtech.ws.cxf.rs;

import io.swagger.annotations.Api;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

/**
 * TODO
 * restful webservice
 * @author houzhiwei
 * @date 2018/7/22 20:11
 */
@Api("A REST Web Service Test")
@Path("/sayHello")
public interface CxfRsService {

    @GET
    @Path("/{a}")
    @Produces(MediaType.TEXT_PLAIN)
    public String sayHello(@PathParam("a") String a);
}
